//
//  BoutoqueDataSource.m
//  Travel_M_Travel
//
//  Created by APPLE10 on 15-3-31.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "BoutoqueDataSource.h"

@implementation BoutoqueDataSource
- (instancetype)initWithDictionary:(NSMutableDictionary *)dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

+ (instancetype)journeyDetilWithDic:(NSMutableDictionary *)dic
{
    BoutoqueDataSource *data = [[BoutoqueDataSource alloc]initWithDictionary:dic];
    return [data autorelease];
    
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        self.idNumber = value;
    }
    if ([key isEqualToString:@"description"]) {
        self.journeryDescription = value;
    }
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}

@end
